﻿using Microsoft.AspNetCore.Mvc;
using NanjingbeiRailwayStation.Core;
using NanjingbeiRailwayStation.Data.ClickHouse.Models;

namespace NanjingbeiRailwayStation.WebApi.Controllers
{
    /// <summary>
    /// 测试使用
    /// </summary>
    /// 
    [Route("[controller]")]
    public class HealthMonitoringController : ControllerBase
    {
        private readonly ILogger<HealthMonitoringController> _logger;
 

        /// <summary>
        /// 
        /// </summary>
        /// <param name="logger"></param>
        public HealthMonitoringController(ILogger<HealthMonitoringController> logger)
        {
            _logger = logger;
        }

     
        /// <summary>
        /// 获取ClickHouse 时间
        /// </summary>
        /// <returns></returns>
        [HttpGet("GetClickHouseDateTime")]
        public async Task<ResultRespose<ClickHouseDateTime>> GetClickHouseDateTime()
        {
            _logger.LogInformation("GetClickHouseDateTime"+Guid.NewGuid().ToString());

           return new ResultRespose<ClickHouseDateTime>();

        }
    }
}
